package com.zlt.util;


import com.zlt.vo.ActiveUser;

/**
 * @author wbh
 * @version 1.0
 * @description: TODO
 * @date 2022/7/31 21:39
 */
public class ActiveUserUtil {

    private static ThreadLocal<ActiveUser> threadLocal = new ThreadLocal<>();

    public static void set(ActiveUser activeUser) {
        threadLocal.set(activeUser);
    }

    public static ActiveUser get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
